package com.xjm.viewservice.config;

import com.xjm.viewservice.entity.Product;
import com.xjm.viewservice.service.ProductServiceFeign;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Panda
 * @create 2022-01-14 16:12
 */

@Component
public class HystrixConfig implements ProductServiceFeign {

    @Override
    public List<Product> listProdcuts() {
        List<Product> result = new ArrayList<>();
        result.add(new Product(0,"数据微服务不可用",0));
        return result;
    }
}
